package com.un.web.sys.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.un.core.entity.BaseEntity;

import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * @Author xingjian
 * @Date 2023-03-02
 **/

@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "sys_user")
public class SysUser extends BaseEntity {
    /**
     * 姓名
     */
    @TableField(value = "`name`")
    private String name;

    /**
     * 电话
     */
    @TableField(value = "mobile")
    private String mobile;

    /**
     * 密码
     */
    @TableField(value = "`password`")
    private String password;

    /**
     * 盐值
     */
    @TableField(value = "salt")
    private String salt;

    @TableField(value = "account")
    private String account;
    /**
     * 邮箱
     */
    @TableField(value = "email")
    private String email;

    /**
     * 微信id
     */
    @TableField(value = "wx_user_id")
    private String wxUserId;

    /**
     * 微信临时id
     */
    @TableField(value = "wx_temp_id")
    private String wxTempId;

    /**
     * Ip地址
     */
    @TableField(value = "ip_addr")
    private String ipAddr;

    /**
     * 性别
     */
    @TableField(value = "sex")
    private Integer sex;

    /**
     * 头像
     */
    @TableField(value = "avatar")
    private String avatar;

    /**
     * 等级
     */
    @TableField(value = "grade")
    private Integer grade;

    @TableField(value = "`exp`")
    private Integer exp;

    @TableField(value = "role_id")
    private Integer roleId;

}